package org.sws.infrastructure.persistent.dao;

import cn.bugstack.middleware.db.router.annotation.DBRouter;
import org.apache.ibatis.annotations.Mapper;
import org.sws.domain.activity.model.entity.ActivityAccountMonthEntity;
import org.sws.infrastructure.persistent.po.RaffleActivityAccountMonth;

/**
 * @author songwenshuai
 * @description 抽奖活动账户表-月次数
 */
@Mapper
public interface IRaffleActivityAccountMonthDao {
    @DBRouter
    ActivityAccountMonthEntity queryactivityMonthAccount(String userId, Long activityId, String month);

    int updateActivityAccountMonthSubtractionQuota(RaffleActivityAccountMonth raffleActivityAccountMonth);

    void insert(RaffleActivityAccountMonth activityAccountMonth);

    @DBRouter
    Integer queryRaffleActivityAccountMonthPartakeCount(RaffleActivityAccountMonth raffleActivityAccountMonth);

    void addAccountQuota(RaffleActivityAccountMonth raffleActivityAccountMonth);

    @DBRouter
    RaffleActivityAccountMonth queryActivityAccountMonthByUserId(RaffleActivityAccountMonth raffleActivityAccountMonth);
}
